﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
namespace gamexpert
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = (string)Session["checkout"];
            if (User.Identity.IsAuthenticated)
            {
                if (str == "yes")
                {
                    Response.Redirect("~/member/Payment.aspx");
                }
                else
                {
                    Response.Redirect("~/member/MemberArea.aspx");
                }
            }
            else
            {
                Session["order"] = null;
            }
        }
        protected void Login1_LoggedIn(object sender, EventArgs e)
        {
            string str= (string)Session["checkout"];
            
            if (str == "yes")
            {
                Response.Redirect("~/member/Payment.aspx");
            }
            else
            {
                Response.Redirect("~/member/MemberArea.aspx");
            }
        }
    }
}
